package com.ewzj.bigdata.mvp.contract

import com.ewzj.bigdata.mvp.model.reqbean.Reqpagebean
import com.ewzj.bigdata.mvp.model.rspbean.BaseData
import com.ewzj.bigdata.mvp.model.rspbean.BaseListData
import com.ewzj.bigdata.mvp.model.rspbean.RspOriginBean
import com.ewzj.bigdata.mvp.ui.adapter.OriginAdapter
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable

/**
 * author:zhangjing
 * 作用:
 * return:
 */
class OrginNewsFragmentContract{
    interface View : IView{
        fun initRecylerview(adapter :OriginAdapter)
    }

    interface Model: IModel {
        fun getnewsByPageFromNet(pagebean: Reqpagebean) :Observable<BaseData<BaseListData<RspOriginBean>>>
        fun getnewsByPage(pagebean: Reqpagebean) :Observable<List<RspOriginBean>>
    }
}